A basic Gauge chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.gauge.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="250" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.Gauge({
id: 'cvs',
min: 0,
max: 10,
value: 3.29,
options: {
valueText: true,
valueTextDecimals: 2,
valueTextBounding: false,
valueTextYPos: 0.4,
textSize: 18,
greenColor: '#afa',
greenWidth: 15,
redWidth: 15,
yellowWidth: 15,
labelsOffsetRadius: 9,
labelsOffsetx: 0,
labelsOffsety: 0
}
}).draw();
</script>